<!DOCTYPE html>
<html>
<head>
    <title>备件报废记录</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16" style="margin: 8px 0px 0px 1px">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"></i-input>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>
        <Row :gutter="16" style="margin: 3px 0px 0px 0px;">
            <div class="buttons-group">
                #if($shiro.hasPermission("scrapaccerecord:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("scrapaccerecord:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("scrapaccerecord:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="scrapAcceRecord" :rules="ruleValidate" :label-width="80">
            <Row>
                <i-col span="11">
                    <Form-item label="报废编号" prop="scrapNo">
                        <i-input v-model="scrapAcceRecord.scrapNo" placeholder="报废编号" readonly></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11" offset="2">
                    <Form-item label="备注" prop="remark">
                        <i-input v-model="scrapAcceRecord.remark" placeholder="备注"></i-input>
                    </Form-item>
                </i-col>
            </Row>

         <!-- <Form-item label="审核状态" prop="status">
                <i-input v-model="scrapAcceRecord.status" placeholder="审核状态"></i-input>
            </Form-item>
            <Form-item label="审核时间" prop="checkDate">
                <i-input v-model="scrapAcceRecord.checkDate" placeholder="审核时间"></i-input>
            </Form-item>
            <Form-item label="审核人" prop="checkUser">
                <i-input v-model="scrapAcceRecord.checkUser" placeholder="审核人"></i-input>
            </Form-item>

            <Form-item label="处理时间" prop="dealTime">
                <i-input v-model="scrapAcceRecord.dealTime" placeholder="处理时间"></i-input>
            </Form-item>
            <Form-item label="处理人" prop="dealUser">
                <i-input v-model="scrapAcceRecord.dealUser" placeholder="处理人"></i-input>
            </Form-item>
            <Form-item label="是否已处理" prop="isDeal">
                <i-input v-model="scrapAcceRecord.isDeal" placeholder="是否已处理"></i-input>
            </Form-item>
             <Form-item label="删除标识" prop="delFlag">
                <i-input v-model="scrapAcceRecord.delFlag" placeholder="删除标识"></i-input>
            </Form-item>
            <Form-item label="上传日期" prop="createDate">
                <i-input v-model="scrapAcceRecord.createDate" placeholder="上传日期"></i-input>
            </Form-item>
            <Form-item label="更新日期" prop="updateDate">
                <i-input v-model="scrapAcceRecord.updateDate" placeholder="更新日期"></i-input>
            </Form-item>
            <Form-item label="更新者ID" prop="updateUser">
                <i-input v-model="scrapAcceRecord.updateUser" placeholder="更新者ID"></i-input>
            </Form-item>
            <Form-item label="创建者ID" prop="createUser">
                <i-input v-model="scrapAcceRecord.createUser" placeholder="创建者ID"></i-input>
            </Form-item>-->
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px">返回</i-button>
                <i-button type="info" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/spare/scrapaccerecord.js?_${date.systemTime}"></script>
</body>
</html>
